﻿using System;

namespace LamdbaExpressionEx
{
    class LamdbaExpressionEx
    {
        /// <summary>
        /// 申明一个委托
        /// </summary>
        /// <param name="args"></param>
        delegate void CalculateDelegate(Int32 x, Int32 y);

        static void Main(string[] args)
        {
            CalculateDelegate myDelegate = (x, y) => Console.WriteLine(x + y);
            myDelegate(300, 100);

            Console.ReadKey();
        }

    }
}
